package enums

const Token string = "token"

// respStruct定义全局的返回结果
type respStruct struct {
	Code string
	Msg  string
}

// 为全局返回结果定义枚举
var (
	Succeed        = &respStruct{Code: "1000", Msg: "ok"}
	NoLoginErr     = &respStruct{Code: "1001", Msg: "对不起，您未登录或登录超时，请登录～！"}
	ParamErr       = &respStruct{Code: "1002", Msg: "对不起，您请求的参数为空或不正确，请检查～！"}
	ExistsErr      = &respStruct{Code: "1003", Msg: "对不起，填写的信息已存在，请更换～！"}
	NoData         = &respStruct{Code: "1004", Msg: "暂无内容～"}
	SysErr         = &respStruct{Code: "1005", Msg: "对不起，系统错误，请联系系统管理员～！"}
	DbErr          = &respStruct{Code: "1005", Msg: "对不起，系统错误——数据库预处理失败，请联系系统管理员～！"}
	DataErr        = &respStruct{Code: "1005", Msg: "对不起，系统错误——数据处理失败，请联系系统管理员～！"}
	RedisErr       = &respStruct{Code: "1006", Msg: "对不起，系统错误——缓冲数据处理失败，请联系系统管理员～！"}
	UnPass         = &respStruct{Code: "1007", Msg: "对不起，该登录账号被冻结，请联系系统管理员～！"}
	PackedErr      = &respStruct{Code: "1008", Msg: "对不起，数据封装失败，请联系系统管理员～！"}
	UserErr        = &respStruct{Code: "1009", Msg: "对不起，用户名或密码不正确，请重试～！"}
	UploadFileErr  = &respStruct{Code: "1010", Msg: "对不起，获取上传的文件失败，请重试～！"}
	UploadNotAllow = &respStruct{Code: "1011", Msg: "对不起，不允许上传该类型的文件，请重试～！"}
	UploadPathErr  = &respStruct{Code: "1011", Msg: "对不起，创建上传目录失败，请重试～！"}
	UploadFileSize = &respStruct{Code: "1012", Msg: "对不起，上传文件大小超出系统限制，请重试～！"}
	UploadErr      = &respStruct{Code: "1013", Msg: "对不起，上传文件失败，请重试～！"}
	DownloadErr    = &respStruct{Code: "1014", Msg: "对不起，获取下载的文件失败，请重试～！"}
	DeleteFileErr  = &respStruct{Code: "1015", Msg: "对不起，删除文件失败，请重试～！"}
	CheckCodeErr   = &respStruct{Code: "1016", Msg: "对不起，您输入的验证码不正确，请重试～！"}
	PasswordErr    = &respStruct{Code: "1017", Msg: "对不起，登录密码为空，或长度不是6至30位，请检查～！"}
	OldPasswdErr   = &respStruct{Code: "1018", Msg: "对不起，您输入的原始密码不正确，请重试～！"}
	TwoPassErr     = &respStruct{Code: "1019", Msg: "对不起，您输入的两次密码不一致，请重试～！"}
	ParentErr      = &respStruct{Code: "1020", Msg: "对不起，选择的所属父级不允许为自己，请重试～！"}
)

// 定义全局的菜单编码枚举
const (
	SysConf  string = "10010101"
	SysMenu  string = "10010102"
	SysBtn   string = "10010103"
	SysRole  string = "10010104"
	SysUser  string = "10010105"
	SysDict  string = "10010106"
	SysTag   string = "10010107"
	SysLog   string = "10010108"
	SysNote  string = "10010109"
	SysFile  string = "10010110"
	Feedback string = "10010112"

	// Infor 资讯
	Infor   string = "10020101"
	Keyword string = "10020301"
	KwLog   string = "10020302"
)
